home *** CD-ROM | disk | FTP | other *** search
- debug = 0;
- var movx = parseInt("250",10);
- var movy = parseInt("100",10);
- if(texts == null)
- {
- var texts = "This|is|Line|Chart|";
- }
- if(vals == null)
- {
- var vals = "100|40|20|140|";
- }
- if(c1 == null)
- {
- var c1 = parseInt("16711680",10);
- }
- else
- {
- c1 = parseInt(c1,16);
- }
- if(c2 == null)
- {
- var c2 = parseInt("65280",10);
- }
- else
- {
- c2 = parseInt(c2,16);
- }
- if(c3 == null)
- {
- var c3 = parseInt("255",10);
- }
- else
- {
- c3 = parseInt(c3,16);
- }
- if(bgc == null)
- {
- var bgc = parseInt("16777215",10);
- }
- else
- {
- bgc = parseInt(bgc,16);
- }
- if(tpause == null)
- {
- var tpause = parseInt("300",10);
- }
- else
- {
- tpause = parseInt(tpause,10);
- }
- if(ty == null)
- {
- var ty = parseInt("20",10);
- }
- else
- {
- ty = parseInt(ty,10);
- }
- if(by == null)
- {
- var by = parseInt("10",10);
- }
- else
- {
- by = parseInt(by,10);
- }
- if(lx == null)
- {
- var lx = parseInt("20",10);
- }
- else
- {
- lx = parseInt(lx,10);
- }
- if(rx == null)
- {
- var rx = parseInt("40",10);
- }
- else
- {
- rx = parseInt(rx,10);
- }
- if(pd == null)
- {
- var pd = parseInt("4",10);
- }
- else
- {
- pd = parseInt(pd,10);
- }
- if(sbg == null)
- {
- var sbg = parseInt("0",10);
- }
- else
- {
- sbg = parseInt(sbg,10);
- }
- var lm = " |";
- var lmxy = " |";
- ii = 0;
- if(0 < sbg)
- {
- moviearea.bgrholder.attachMovie("plain_bgr","pbg",0);
- setProperty("moviearea.bgrholder.pbg", _X, 0);
- setProperty("moviearea.bgrholder.pbg", _Y, 0);
- setProperty("moviearea.bgrholder.pbg", _width, movx);
- setProperty("moviearea.bgrholder.pbg", _height, movy);
- mc = new Color("moviearea.bgrholder.pbg");
- mc.setRGB(bgc);
- }
- moviearea._x = 0;
- moviearea.bimage._width = movx;
- moviearea._y = 0;
- moviearea.bimage._height = movy;
- var texts = texts.split("|");
- var vals = vals.split("|");
- tpause = int(tpause * 12 / 100);
- mp = 0;
- t2 = tpause / 2;
- attachMovie("click","click",0);
- setProperty("click", _X, 0);
- setProperty("click", _Y, 0);
- setProperty("click", _width, movx);
- setProperty("click", _height, movy);
- var lm = lm.split("|");
- var lmxy = lmxy.split("|");
- i = 0;
- while(i < lm.length)
- {
- if(3 < lm[i].length)
- {
- attachMovie("lom","lm" add i,i + 1);
- var xy = lmxy[i].split(",");
- setProperty("lm" add i, _X, xy[0]);
- setProperty("lm" add i, _Y, xy[1]);
- eval("lm" add i).loadMovie(lm[i]);
- }
- i++;
- }
- p100 = 0;
- min = 9999999;
- max = -9999999;
- i = 0;
- while(i < texts.length)
- {
- if(texts[i] ne "")
- {
- vals[i] = Number(vals[i]);
- attachMovie("shape","t" add i,(i + 1) * 3 + lm.length);
- setProperty("t" add i, _visible, false);
- attachMovie("newline",i,i * 3 + 1 + lm.length);
- setProperty(i, _visible, false);
- attachMovie("ppp","p" add i,i * 3 + 2 + lm.length);
- setProperty("p" add i, _width, pd);
- setProperty("p" add i, _height, pd);
- setProperty("p" add i, _visible, false);
- mc = new Color("t" add i);
- mc.setRGB(c1);
- set("t" add i add ".text.text",texts[i] add " (" add vals[i] add ")");
- mc = new Color(i);
- mc.setRGB(c2);
- mc = new Color("p" add i);
- mc.setRGB(c3);
- if(max < vals[i])
- {
- max = vals[i];
- }
- if(vals[i] < min)
- {
- min = vals[i];
- }
- ii++;
- }
- i++;
- }
- p100 = max - min;
- i = 0;
- while(i < ii)
- {
- vals[i] -= min;
- i++;
- }
- mode = 0;
- var today = new Date();
- if(!(today.getTime() < ts && ts < today.getTime() + 172800000 || ts == -1 || 0 < debug))
- {
- gotoAndStop("ea");
- }
-